//
//  FeaturedFirstRootClass.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/08/30
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "FeaturedFirstRootClass.h"
#import "FirstData.h"

@implementation FeaturedFirstRootClass
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<FirstData *> *dataArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FirstData *data = [FirstData modelWithDic:dic];
            [dataArr addObject:data];
        }
        _data = dataArr;
    }
}

@end
